package com.xfcy.blog.dto;

import com.xfcy.blog.valid.UpdateGroup;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 晓风残月Lx
 * @date 2023/5/3 16:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserAuthDTO {
    /**
     * 昵称
     * */
    @NotBlank(message = "请填写昵称", groups = UpdateGroup.class)
    private String nickname;
    /**
     * 简介
     * */
    @NotBlank(message = "请填写简介", groups = UpdateGroup.class)
    private String intro;

    /**
     * 头像
     * */
    @NotNull(message = "请上传头像", groups = UpdateGroup.class)
    private String avatar;

}
